﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ImportMedia.aspx.cs" Inherits="ProlificNotion.Umbraco.MediaImporter.ImportMedia" MasterPageFile="../masterpages/umbracoDialog.Master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="body" runat="server">
<script language="javascript" type="text/javascript">
function postBackByObject()
{
    var o = window.event.srcElement;
    if (o.tagName == "INPUT" && o.type == "checkbox")
    {
       __doPostBack("","");
    } 
}
</script>


    <p><asp:Label ID="instructionLabel" runat="server" Text="Browse for the file on the server that you would like to import or select a directory:"></asp:Label></p>

    <hr />

    <asp:TreeView ID="DirTreeView" onclick="javascript:postBackByObject()" runat="server" onselectednodechanged="DirTreeView_SelectedNodeChanged"    />
    
    <p><asp:Button ID="importButton" runat="server" Text="Import Selected Files" OnClick="importButton_Click" /> 
    <a href="#" onclick="parent.UmbClientMgr.mainTree().reloadActionNode();parent.UmbClientMgr.closeModalWindow()"><%=umbraco.ui.Text("general", "close")%></a> </p>
   
</asp:Content>